package com.gdawj.javabeans;

import java.io.Serializable;


public class EnseigneID implements Serializable {

    private Long idEnseignant;
    private Long idPromotion;
    private Long idMatiere;

    public EnseigneID() {
    }

    public EnseigneID(Long idEnseignant, Long idPromotion, Long idMatiere) {
        this.idEnseignant = idEnseignant;
        this.idPromotion = idPromotion;
        this.idMatiere = idMatiere;
    }


    @Override
    public int hashCode() {
        int hash = 0;
        hash += (long) idEnseignant;
        hash += (long) idPromotion;
        hash += (long) idMatiere;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        if (!(object instanceof EnseigneID)) {
            return false;
        }
        EnseigneID other=(EnseigneID)object;
        if (this.idEnseignant!=other.idEnseignant) {
            return false;
        }
        if (this.idPromotion != other.idPromotion) {
            return false;
        }
        if (this.idMatiere != other.idMatiere) {
            return false;
        }
        return true;
    }

}
